/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import org.springframework.web.bind.annotation.*;

/**
 * <p>Project: SpringMVCPro - HelloController</p>
 * <p>Powered by yzc On 2023-10-30 10:38:52</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String GetHello(){
        String h1 = "hello 你好";
        System.out.println(h1);
        return h1;
    }

    @PostMapping ("/hello")
    public String PostHello(String account,String password){
        String h1 = "hello 你好";
        System.out.println(h1);
        return h1;
    }
    @DeleteMapping("/hello")
    public String DelHello(){
        String h1 = "hello 你好";
        System.out.println(h1);
        return h1;
    }
    @PutMapping ("/hello")
    public String PutHello(){
        String h1 = "hello 你好";
        System.out.println(h1);
        return h1;
    }
    @PatchMapping("/hello")
    public String PatchHello(){
        String h1 = "hello 你好";
        System.out.println(h1);
        return h1;
    }
}
